home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / openoffice / program / cde-open-url < prev    next >
Text File  |  2008-10-15  |  2KB  |  63 lines

  1. #!/bin/sh
  2.  
  3. # restore search path for dynamic loader to system defaults to
  4. # avoid version clashes of mozilla libraries shipped with OOo
  5. case `uname -s` in
  6.   AIX)
  7.     LIBPATH=$SYSTEM_LIBPATH
  8.     if [ -z "$LIBPATH" ]; then
  9.         unset LIBPATH SYSTEM_LIBPATH
  10.     else
  11.         export LIBPATH; unset SYSTEM_LIBPATH
  12.     fi
  13.     ;;
  14.  
  15.   Darwin)
  16.     DYLD_LIBRARY_PATH=$SYSTEM_DYLD_LIBRARY_PATH
  17.     if [ -z "$DYLD_LIBRARY_PATH" ]; then
  18.         unset DYLD_LIBRARY_PATH SYSTEM_DYLD_LIBRARY_PATH
  19.     else
  20.         export DYLD_LIBRARY_PATH; unset SYSTEM_DYLD_LIBRARY_PATH
  21.     fi
  22.     ;;
  23.  
  24.   HP-UX)
  25.     SHLIB_PATH=$SYSTEM_SHLIB_PATH
  26.     if [ -z "$SHLIB_PATH" ]; then
  27.         unset SHLIB_PATH SYSTEM_SHLIB_PATH
  28.     else
  29.         export SHLIB_PATH; unset SYSTEM_SHLIB_PATH
  30.     fi
  31.     ;;
  32.  
  33.   IRIX*)
  34.     LD_LIBRARYN32_PATH=$SYSTEM_LD_LIBRARYN32_PATH
  35.     if [ -z "$LD_LIBRARYN32_PATH" ]; then
  36.         unset LD_LIBRARYN32_PATH SYSTEM_LD_LIBRARYN32_PATH
  37.     else
  38.         export LD_LIBRARYN32_PATH; unset $SYSTEM_LD_LIBRARYN32_PATH
  39.     fi
  40.     ;;
  41.  
  42.   *)
  43.     LD_LIBRARY_PATH=$SYSTEM_LD_LIBRARY_PATH
  44.     if [ -z "$LD_LIBRARY_PATH" ]; then
  45.         unset LD_LIBRARY_PATH SYSTEM_LD_LIBRARY_PATH
  46.     else
  47.         export LD_LIBRARY_PATH; unset SYSTEM_LD_LIBRARY_PATH
  48.     fi
  49.     ;;
  50. esac
  51.  
  52. if [ -x /usr/bin/mktemp ]
  53. then
  54.   TMPFILE=`mktemp -t open-url.XXXXXX`
  55. else
  56.   DTTMPDIR=`xrdb -query | grep DtTmpDir`
  57.   TMPFILE=${DTTMPDIR:-$HOME/.dt/tmp}/open-url.$$
  58. fi
  59.  
  60. if [ -z "$TMPFILE" ]; then exit 1; fi
  61. ( echo "$1" > "$TMPFILE"; dtaction Open "$TMPFILE"; rm -f "$TMPFILE" ) &
  62. exit 0
  63.